home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
001-100
/
001-025
/
019
/
blackjack
/
nfrom.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-17
|
240b
|
15 lines
/* NFROM.C return a number between low and high, inclusice
*/
#include "local.h"
short nfrom(low, high)
register short low, high;
{
int rand();
register short nb = high - low + 1;
return ((short)(rand() % nb + low));
}